package com.zld.smarket.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class Goods implements Serializable {
    private Long goodsId;

    private Long goodsNo;

    private String goodsName;

    private BigDecimal goodsPurchaseprice;

    private BigDecimal goodsPrice;

    private Long goodsTypeno;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date goodsPdate;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date goodsEdate;

    private String goodsUnit;

    private String goodsPicture;

    private static final long serialVersionUID = 1L;

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Long getGoodsNo() {
        return goodsNo;
    }

    public void setGoodsNo(Long goodsNo) {
        this.goodsNo = goodsNo;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName == null ? null : goodsName.trim();
    }

    public BigDecimal getGoodsPurchaseprice() {
        return goodsPurchaseprice;
    }

    public void setGoodsPurchaseprice(BigDecimal goodsPurchaseprice) {
        this.goodsPurchaseprice = goodsPurchaseprice;
    }

    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public Long getGoodsTypeno() {
        return goodsTypeno;
    }

    public void setGoodsTypeno(Long goodsTypeno) {
        this.goodsTypeno = goodsTypeno;
    }

    public Date getGoodsPdate() {
        return goodsPdate;
    }

    public void setGoodsPdate(Date goodsPdate) {
        this.goodsPdate = goodsPdate;
    }

    public Date getGoodsEdate() {
        return goodsEdate;
    }

    public void setGoodsEdate(Date goodsEdate) {
        this.goodsEdate = goodsEdate;
    }

    public String getGoodsUnit() {
        return goodsUnit;
    }

    public void setGoodsUnit(String goodsUnit) {
        this.goodsUnit = goodsUnit == null ? null : goodsUnit.trim();
    }

    public String getGoodsPicture() {
        return goodsPicture;
    }

    public void setGoodsPicture(String goodsPicture) {
        this.goodsPicture = goodsPicture == null ? null : goodsPicture.trim();
    }
}